package com.yuanqi.Common.Pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * (Comment)表实体类
 *
 * @author makejava
 * @since 2024-10-28 08:58:49
 */
@Data
@TableName("comment")
public class Comment implements Serializable {

    private Integer id;
    //发布人
    private Long userId;
    //回复id
    private Integer fid;
    //被回复数
    private Integer fnum;

    private String data;

    private Long createTime;

    private Integer postId;

    private String userPic;

    private String nikeName;

    @TableField(exist = false)
    private List<Comment> children;

}

